SET( CMAKE_CXX_COMPILER "/opt/intel/bin/icpc" )
SET( CMAKE_C_COMPILER "/opt/intel/bin/icc" )
cmake_minimum_required(VERSION 2.8)
 
project(CurvatureMapVisualization)
 
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})


add_executable(CurvatureMapVisualization MACOSX_BUNDLE CurvatureMapVisualization.cxx)
add_executable(VisualizeCurvatureMap MACOSX_BUNDLE VisualizeCurvatureMap.cxx)
if(VTK_LIBRARIES)
  target_link_libraries(CurvatureMapVisualization ${VTK_LIBRARIES})
  target_link_libraries(VisualizeCurvatureMap ${VTK_LIBRARIES})  
else()
  target_link_libraries(CurvatureMapVisualization vtkHybrid)
  target_link_libraries(VisualizeCurvatureMap vtkHybrid)
  endif()


#if(VTK_LIBRARIES)
#  target_link_libraries(CurvatureMapVisualization ${VTK_LIBRARIES})
#else()
#  target_link_libraries(CurvatureMapVisualization vtkHybrid)
#endif()


#if (ITKVtkGlue_LOADED)
#  find_package(VTK REQUIRED)
#  include(${VTK_USE_FILE})
#else()
#  find_package(ItkVtkGlue REQUIRED)
#  include(${ItkVtkGlue_USE_FILE})
#  set(Glue ItkVtkGlue)
#endif()

# Generate JPG series
#ADD_EXECUTABLE( CurvatureMapVisualization  CurvatureMapVisualization.cxx )
#TARGET_LINK_LIBRARIES( CurvatureMapVisualization  ${VTK_LIBRARIES} )

# Just 3-D Visualization
#ADD_EXECUTABLE( VisualizeCurvatureMap  VisualizeCurvatureMap.cxx )
#TARGET_LINK_LIBRARIES( VisualizeCurvatureMap  ${VTK_LIBRARIES} )

# Just 3-D Visualization Normal VTK file
#ADD_EXECUTABLE( Show  Show.cxx )
#TARGET_LINK_LIBRARIES( Show  ${VTK_LIBRARIES} )

